/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


//js used by invite friend
$(document).ready(function()
{
    //sort part
    LoadSortbyClass();

	$( "a[platid]" ).click(
		function(){
            FilterSubmit( $(this).attr( "platid" ));
            return false;
        }
	);
});


//for review functions
function LoadSortbyClass(){
    var platid = $( "#plat_id" ).val();
    $( "a[platid="+platid+"]" ).addClass( "selectedSortby" );
}

function FilterSubmit( type ){
    //reset the sort by selector
    var platid = $( "#plat_id" ).val();
    if( platid != type ){
        $( "#plat_id" ).val( type );
        $( "#topform" ).submit();
    }

}
